<template>
  <div id="searchVue">
    <el-input :placeholder="placeholder" style="width: 200px;" size="small" v-model="searchVal" clearable> </el-input>
    <div class="block">
    <el-date-picker
      v-model="Dateval"
      type="daterange"
      size="small"
      style="width: 220px;margin-left: 8px;"
      range-separator=":"
      start-placeholder="开始日期"
      end-placeholder="结束日期">
    </el-date-picker>
    <el-button type="success" size="mini" icon="el-icon-search">搜索</el-button>
    <el-button type="warning" size="mini" icon="el-icon-refresh-left">重置</el-button>
  </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
        Dateval:'',
        searchVal:''
    }
  },
  props:{
    placeholder:{
        type:String,
        default:()=>{
            return '模糊搜索'
        }
    }
  },
};

</script>

<style lang="less">
    #searchVue{
        display: flex;
        width: 100%;
        .el-button--success {
            color: #fff;
            background-color: #13ce66;
            border-color: #13ce66;
            &:hover{
                background-color: #13ce66cc;
            }
        }
        .el-button--warning {
            margin-left: 0;
            color: #fff;
            background-color: #ffba00;
            border-color: #ffba00;
            &:hover{
                background-color: #ffba00cc;
            }
        }
    }
</style>